<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'frontend.main.class.php');
$feObj = new FrontendMainBase();

//
include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/product/product.category.class.php');
$mObj = new ProductCategoryBase();
$mObj->format = true;
$mObj->setQueryLimitLength(10);
$categories = $mObj->getCategories('', 0);

$feObj->addInject('categories', $categories);

//
echo $feObj->display('pagelayout/pagelayout_main_products.tpl');
//
?>